package cn.example.zjgsu.pojo;

import org.springframework.lang.Nullable;

import java.io.Serializable;
import java.util.List;

public class Plan implements Serializable {
    @Nullable
    private Integer id;

    private String userid;

    private List<Planitem> planitems;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public List<Planitem> getPlanitems() {
        return planitems;
    }

    public void setPlanitems(List<Planitem> planitems) {
        this.planitems = planitems;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}